package com.quanyan.travel.service;

import com.quanyan.api.APIResponse;
import com.quanyan.common.Plugin.PageObj;
import com.quanyan.travel.api.req.ReqActivity;
import com.quanyan.travel.api.resp.RespActivityComment;
import com.quanyan.travel.api.resp.RespActivityUser;
import com.quanyan.travel.api.resp.RespAppActivityDetail;
import com.quanyan.travel.api.resp.RespOutdoorActivityDetail;

import javax.servlet.http.HttpServletRequest;
import java.util.List;


/**
 * @author dongshenglin
 * @date 2016/5/26  20:45
 */
public interface TravelDetailService {

    APIResponse<RespAppActivityDetail> getPriceCalendar(Integer uid,Integer activityId,HttpServletRequest request);//价格日历

    RespOutdoorActivityDetail getTravelOverviewSingle(Integer activityId);

    boolean changeFavorite(Integer uid,Integer activityId,Integer changeType);//用户收藏活动/取消收藏

    boolean isFavorite(Integer uid,Integer activityId);//查询活动是否已收藏

    APIResponse<PageObj<List<RespActivityUser>>> getPageCollectionUsers(Integer activityId);//获取(所有)收藏用户列表

    APIResponse<PageObj<List<RespActivityComment>>> getPageActivityComments(ReqActivity request);//获取分页活动评论列表

    /**
     * 获取6个最新的收藏用户
     */
    APIResponse<PageObj<List<RespActivityUser>>> getSixCollectUser(Integer activityId);

    /**
     * 判断活动是否为季度活动
     */
    boolean isQuarter(Integer activityId);
}
